projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7fd3a7
)
(re_compile_pattern): Set gl_state.current_syntax_table.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 16 Sep 2006 15:28:47 +0000
(15:28 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 16 Sep 2006 15:28:47 +0000
(15:28 +0000)
src/regex.c
patch
|
blob
|
history
diff --git
a/src/regex.c
b/src/regex.c
index 846c87041b19ac57f3882c90c4c4537e20e7d4af..763b490c9063dddfea6b9e23c9e1d64b17916329 100644
(file)
--- a/
src/regex.c
+++ b/
src/regex.c
@@
-6197,6
+6197,10
@@
re_compile_pattern (pattern, length, bufp)
{
reg_errcode_t ret;
+#ifdef emacs
+ gl_state.current_syntax_table = current_buffer->syntax_table;
+#endif
+
/* GNU code is written to assume at least RE_NREGS registers will be set
(and at least one extra will be -1). */
bufp->regs_allocated = REGS_UNALLOCATED;